package o;

import com.huawei.appgallery.forum.base.card.bean.Section;
import com.huawei.appgallery.forum.cards.bean.ForumHorizonListCardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import java.util.List;

public class buy extends chz {
    public buy(long j, cie o_cie, int i, List<CardBean> list) {
        super(j, o_cie, i, list);
    }

    public void ˎ(Section section) {
        if (section != null) {
            ForumHorizonListCardBean ॱ = ॱ();
            if (ॱ != null) {
                List<Section> ˊ = ॱ.ˊ();
                if (ˊ != null) {
                    for (Section section2 : ˊ) {
                        if (section2 != null && section2.ˊ() == section.ˊ()) {
                            section2.ˊ(section.ᐝ());
                            section2.ˎ(section.ʻ());
                        }
                    }
                }
            }
        }
    }

    private ForumHorizonListCardBean ॱ() {
        if (this.ˎ != null && this.ˎ.size() > 0) {
            CardBean cardBean = (CardBean) this.ˎ.get(0);
            if (cardBean instanceof ForumHorizonListCardBean) {
                return (ForumHorizonListCardBean) cardBean;
            }
        }
        return null;
    }
}
